Finished implementation of getNumberOfAdjacentLivingCells.