nextIterationState returns the current cell state when a cell does not have neighbors on both sides
corrected logic for evolve()
Merge branch 'grid'