The teacher in class asked us to try to play around with mik's Foxes and Rabbit Scenario. He deleted a lot of code from the original and asked us to do I few task on it. So currently, I'm doing pretty well so far, but I've recently encountered a problem. Everytime a Rabbit gives birth, it places the new Rabbit at an Adjacent square. The problem with this is that eventually when a group of Rabbits get near a corner or edge, the new borns are so clumped that it mass spawns Rabbits to a point where the program lags out. I want to fix this by having a check to see if there are available squares around the rabbit before it allows it to give birth. Anyone know how to write this? Help is greatly appreciated and thanks for eveyone for helping!