J a game of life in c++