implemented game of life