Update gameoflife.cpp