Added return statement at the end of checkOneNeighbor