public void checkLossOfLife(){
		if (waveNumber != 0){
			int loop;
			for (loop = 0; loop < spawnedWave.enemyStrength(); loop++){
				if (spawnedWave.enemyStrength() == 1){
					player.loseALife(spawnedWave.lossOfLife(), true);
				}
				else{
					player.loseALife(spawnedWave.lossOfLife(), false);
				}
				repaint();
				if (player.getLives() <= 0){
					gameOver();
				}
			}
		}
	}