public void battleRoyale(Graphics g)
	{
		/*if(DungeonGame.mainPanel.panel.player != null && DungeonGame.mainPanel.panel.enemy != null)
		{
			player= DungeonGame.mainPanel.panel.player;
			enemy = DungeonGame.mainPanel.panel.enemy;
		}
		g.setFont(textFont);
		g.setColor(Color.red);
		*/

		if(player.attack == true)
		{
			
			int battleDamage = generator.nextInt(player.damage);
			if(enemy.attack == true || enemy.defend == true)
			{
				if(enemy.attack == true)
				{
					battleDamage += generator.nextInt(2);
				}
				//if(enemy.defend == true)
				{
				//	battleDamage += -(generator.nextInt(2));
				}
				if(battleDamage <= 0)
				{
					battleDamage = 0;
					//System.out.println(battleDamage);
				}
				else
				{
					g.drawImage(player.sword, enemy.x + 23, enemy.y - 7, DungeonGame.frame);
				}
			}
			else
			{
				battleDamage += 1;
			}
			if(battleDamage == 0)
			{
				g.drawImage(player.shield, enemy.x + 23, enemy.y - 7, DungeonGame.frame);
			}
			else
			{
				enemy.health += -(battleDamage);
				battleDamage = 0;
				if(enemy.health <= 0)
				{

					if(enemy.killed == false)
					{
						DungeonGame.mainPanel.panel.player.health += 1;
						if(DungeonGame.mainPanel.panel.player.health > 10)
						{
							DungeonGame.mainPanel.panel.player.health = 10;
						}
					}
					enemy.killed = true;
				}
				//g.drawImage(shield, player.x + 23, player.y - 7, DungeonGame.frame);
			}

			//g.drawString("" + damage, enemy.x + 23, enemy.y - 7);
		}






		if(enemy.attack == true)
		{
			int battleDamage = generator.nextInt(2);
			if(player.attack == true || player.defend == true)
			{
				if(player.attack == true)
				{
					battleDamage += generator.nextInt(2);
				}
				if(player.defend == true)
				{
					battleDamage += -(generator.nextInt(3));
				}
				if(battleDamage < 0)
				{
					battleDamage = 0;
				}
				else
				{
					g.drawImage(player.sword, player.x + 23, player.y - 7, DungeonGame.frame);
				}
			}
			else
			{
				battleDamage += 1;
			}
			if(battleDamage == 0)
			{
				g.drawImage(player.shield, player.x + 23, player.y - 7, DungeonGame.frame);
			}
			else
			{
				player.health += -(battleDamage);
				battleDamage = 0;
				if(player.health <= 0)
				{
					player.killed = true;
					player.attack = false;
					enemy.aware = false;
				}
				//g.drawImage(sheild, player.x + 23, player.y - 7, DungeonGame.frame);
			}
			//g.drawString("" + damage, enemy.x + 23, enemy.y - 7);
		}


	}