private boolean inBounds(Position d){
    switch(state){
      case INVENTORY:
        return(d.x >= 0 && d.x < WIDTH && d.y>=0 && d.y< HEIGHT);
      case MAIN_MENU:
        return (d.y >= 0 && d.y <1 && d.x == 0);
      case PICKUP_MENU:
        return(d.y>=0 && d.y<entityManager.getMap().get(mov.getPos()).getItems().size());
      default:
        return false;
    }
  }