public void update(GameContainer container, StateBasedGame game, int delta)
throws SlickException {
super.update(container, game, delta);
if (container.getInput().isKeyPressed(Input.KEY_ESCAPE)) {
game.enterState(FuzzyMain.MENU_STATE, new FadeOutTransition(),
new FadeInTransition());
}
if (FuzzyMain.gotoLevel > 0) {
game.enterState(FuzzyMain.GAME_STATE, new FadeOutTransition(),
new FadeInTransition());
}
}