private void initiateBattle(Graphics g)
	{
		if(killed == false)
		{
			int diffX = DungeonGame.mainPanel.panel.player.getX() - x;
			int diffY = DungeonGame.mainPanel.panel.player.getY() - y;
			if(Math.abs(diffX) < 23 && Math.abs(diffY) < 23)
			{
				if(Math.abs(diffX) > Math.abs(diffY))
				{
					if(diffX > 0)
					{
						if(!direction.equals("U"))
						{
							battle(DungeonGame.mainPanel.panel.player, this, g);
						}
					}
					else
					{
							if(!direction.equals("D"))
						{
							battle(DungeonGame.mainPanel.panel.player, this, g);
						}
					}
				}
				else
				{
					if(diffY > 0)
					{
						if(!direction.equals("R"))
						{
							battle(DungeonGame.mainPanel.panel.player, this, g);
						}
					}
					else
					{
						if(!direction.equals("L"))
						{
							battle(DungeonGame.mainPanel.panel.player, this, g);
						}
					}
				}
			}

		}
	}