@Override
  public void update(float elapsed) {
    if (controller.justPressed(KeyEvent.VK_I) || controller.justPressed(KeyEvent.VK_ESCAPE)) {
      player.setControllerActive(true);
      game.setGameState(GameState.InGame);
      return;
    }

    player.setControllerActive(false);
    inventory.setDrawTooltip(true);
    inventory.update(elapsed);
    dManager.update(elapsed);
  }
 @Override
 public void draw(Graphics2D graphics) {
   map.draw(graphics);
   sManager.draw(graphics);
   dManager.draw(graphics);
   equip.draw(graphics);
   stats.draw(graphics);
   inventory.draw(graphics);
 }