@Override
	public void update(long l) {
		background.update(l);
		ReadInput();
		changeImage();

		if (play == true) {
			switch(speedPressed) {
			case 1:
				SnakeGame.speed = 250;
				break;
			case 2:
				SnakeGame.speed = 100;
				break;
			case 3:
				SnakeGame.speed = 50;
				break;
			}
			
			switch(levelPressed) {
			case 1:
				parent.nextGameID = 1;
				break;
			case 2:
				parent.nextGameID = 2;
				break;
			case 3:
				parent.nextGameID = 3;
				break;
			case 4:
				parent.nextGameID = 4;
				break;
			}
			System.out.println("LEVEL: "+levelPressed);
			finish();
		}
	}