private static void update(double time) {
		if (Input.getKeyDown(Keyboard.KEY_ESCAPE)) {
			switch (getGameState()) {
			case DEAD:
				break;
			case LOADING:
				break;
			case MAIN_MENU:
				break;
			case PAUSED:
				setGameState(GameState.PLAYING);
				break;
			case PLAYING:
				setGameState(GameState.PAUSED);
				break;
			}
		}
		if (getGameState() == GameState.PLAYING) {
			world.update(time);
		}
		userInterface.update(time);
	}