Added listener to treasureRectangles