create logic for each cell to write data to tempGlider based on totalNumberOfNeighbors