public void run()
	{
		projectileDie();
		characterDie();
		collision();
		for (int i = 0; i < characters.size(); i++)
		{
			characters.get(i).move();
		}
		for (int i = 0; i < projectiles.size(); i++)
		{
			projectiles.get(i).move();
		}
		if (!characters.contains(player))
		{
			JOptionPane.showMessageDialog(null, "GAME OVER. Please enter another coin to continue.");
			System.exit(0);
		}
		if (characters.size() == 1 || player.cheatKeyPressed)
		{
			levelIndex++;
			levelStart();
		}
		if (player.powerUp == 0){
			powerUpTime++;
			if (powerUpTime == player.health + 80){
				if ((int) (Math.random() * 2) == 1){				
					powerUps.add(new PowerUp( (int) Math.random() * 980 + 300, (int) Math.random() * 660 + 300, 100, 100, 1));
				} else {
					powerUps.add(new PowerUp( (int) Math.random() * 980 + 300, (int) Math.random() * 660 + 300, 100, 100, 2));
				}
			}
		}
	}