@Override
	public void update(GameContainer gc, StateBasedGame sb, int delta)
			throws SlickException {
		for (MenuButton button : buttons) {
			button.update(gc, sb, delta);
		}

		if (musicButton.isMousePressed()) {
			if (Game.getMusic().paused()) {
				Game.getMusic().resume();
			} else {
				Game.getMusic().pause();
			}
		}
		
		if (fullscreenButton.isMousePressed()) {
			Game.app.setDisplayMode(Game.getDisplayMode().getWidth(), Game.getDisplayMode().getHeight(), !Game.app.isFullscreen());
		}
		
		if (backButton.isMousePressed()) {
			sb.enterState(MenuState.ID, new FadeOutTransition(Color.black, TRANSITION_DELAY), new FadeInTransition(Color.black, TRANSITION_DELAY));
		}
		
	}