C++ solution to Conway's Game of Life