LifeGame as in Book Data structures with C++