Working simple version of game-of-life