@Override
	public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException
	{
		//resets music
		if(game.getCurrentStateID() == ID && startMusic)
		{
			backgroundMusic = SoundTrack.TRACK_THREE;
			try {
				backgroundMusic.play();
				backgroundMusic.setVolume(0.3f);
			} catch (OutOfRangeException e) {e.printStackTrace();}
			finally{ startMusic = false;}
		}
		
		// get the most recent scores list
		scoresList = retrieveScores();
		if(input.isKeyPressed(Input.KEY_ENTER))
		{
			SoundEffect.VALIDATION.play();
			game.enterState(3);
		}
		if(input.isKeyDown(Input.KEY_ESCAPE))
		{
			container.exit();
		}
		if(input.isKeyDown(Input.KEY_N))
		{
			SoundEffect.VALIDATION.play();
			game.enterState(4);
		}		
		
	}