public void update(Array<BaseTile> tiles, Rectangle playerRect) {
    intersectingPlayer = false;
    if (rect.overlaps(playerRect)) {
      intersectingPlayer = true;
    }

    item1.update(tiles, playerRect);
    item2.update(tiles, playerRect);
    item3.update(tiles, playerRect);
  }
 public void draw(SpriteBatch batch) {
   batch.draw(tableImage, x, y, width, height);
   item1.draw(batch);
   item2.draw(batch);
   item3.draw(batch);
 }