My implementation of game of life