Click on a hat to see if the ball is underneath it. Click on the hat again to put it back on the table.
.