working simple version of game of life