@Override
 public void init(GameContainer gc, StateBasedGame sbg) throws SlickException {
   menu = new Menu(gc.getWidth(), gc.getHeight(), this);
   menu.visible = true;
   this.sbg = sbg;
   this.gc = gc;
 }
 @Override
 public void update(GameContainer gc, StateBasedGame sbg, int arg2) throws SlickException {
   menu.update(this, gc, map);
   if (gc.getInput().isKeyPressed(Input.KEY_ESCAPE)) {
     sbg.enterState(
         GameplayState.ID, new FadeOutTransition(Color.black), new FadeInTransition(Color.black));
   }
 }
 @Override
 public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException {
   menu.draw(g);
 }