To place an apple in an empty place, I\'m using the emptySpots() method to locate the points of the cells that are empty or free.
When I implement the code below