@Override
	public void update(GameContainer gc, StateBasedGame sbg, int delta)
			throws SlickException {
		Input input = gc.getInput();
		Transition t = new FadeOutTransition();
		
		if(easyArea.isMouseOver()){
			if(input.isMouseButtonDown(Input.MOUSE_LEFT_BUTTON)) {
				Settings.setDifficulty("Easy");
				sbg.enterState(PongGame.GAMEPLAYSTATE, t, t);
			}
		}
		
		if(mediumArea.isMouseOver()){
			if(input.isMouseButtonDown(Input.MOUSE_LEFT_BUTTON)) {
				Settings.setDifficulty("Medium");
				sbg.enterState(PongGame.GAMEPLAYSTATE, t, t);
			}
		}
		
		if(hardArea.isMouseOver()){
			if(input.isMouseButtonDown(Input.MOUSE_LEFT_BUTTON)) {
				Settings.setDifficulty("Hard");
				sbg.enterState(PongGame.GAMEPLAYSTATE, t, t);
			}
		}
		
		if(cancelArea.isMouseOver()) {
			if(input.isMouseButtonDown(Input.MOUSE_LEFT_BUTTON))
			sbg.enterState(PongGame.MAINMENUSTATE, t, t);
		}
		
		if(input.isKeyDown(Input.KEY_ESCAPE)) 
			sbg.enterState(PongGame.MAINMENUSTATE, t, t);
	}