conways game of life in c++