public void update() {
		ticks++;
		if (doAnimate) {
			if (changing) {
				alpha -= 0.05f;
				if (alpha < 0.0f) {
					alpha = 1.0f;
					changing = false;
				} else {
					changing = true;
				}
			}
			if (changingPause) {
				if (currentState != HELP) {
					alpha -= 0.05f;
					if (alpha < 0.0f) {
						alpha = 1.0f;
						changingPause = false;
					} else {
						changingPause = true;
					}
				}
			}
		}
		if (paused) {
			pauseState.update();
		} else if (gameStates[currentState] != null) {
			gameStates[currentState].update();
		}
		if (game.mouse.getButton() == -1) allowClick = true;

		GameState.setAllowClick(allowClick);
	}