the game of life working solution