Conway's game of life c++ console implementation