working checkNeighbors function and step