private void initiateBattle(Graphics g)
	{
		for(int q = 0; q < owner.enemies.size(); q++)
		{
			
			DungeonEnemy enemy = owner.enemies.get(q);

	
			if(enemy != null && enemy.killed == false && enemy.roomX == DungeonGame.mainPanel.panel.room.roomX && enemy.roomY == DungeonGame.mainPanel.panel.room.roomY)
			{
				int diffX = (enemy.getX()+25) - (x+25);
				int diffY = (enemy.getY()+25) - (y+25);
				
				//g.drawLine(DungeonGame.mainPanel.panel.enemy.getX()+25, (DungeonGame.mainPanel.panel.enemy.getY())+25, (x+25), (y+25));
				//g.drawOval(x - ((specFrameCount/2)-25), y - ((specFrameCount/2)-25), specFrameCount, specFrameCount);
	
				
				boolean battleCheck = false;
				
				if(playerType == "knight")
				{
					if(Math.abs(diffX) < 23 && Math.abs(diffY) < 23)
					{
						battleCheck = true;
					}
				}
				else if(playerType == "fire_mage")
				{
					
					double radius = Math.hypot(Math.abs(diffX), Math.abs(diffY));
					//System.out.println(radius + " should be smaller than " + specFrameCount);
					if(radius < (specFrameCount/2))
					{
						battleCheck = true;
					}
				}
				
				
				if(battleCheck)
				{
					if(playerType == "knight")
					{
						if(Math.abs(diffX) > Math.abs(diffY))
						{
							if(diffX > 0)
							{
								if(!direction.equals("U"))
								{
									battle(this, enemy, g);
								}
							}
							else
							{
									if(!direction.equals("D"))
								{
									battle(this, enemy, g);
								}
							}
						}
						else
						{
							if(diffY > 0)
							{
								if(!direction.equals("R"))
								{
									battle(this, enemy, g);
								}
							}
							else
							{
								if(!direction.equals("L"))
								{
									battle(this, enemy, g);
								}
							}
						}
					}
					else
					{
						battle(this,enemy, g);
					}
				}
			}
		}
	}