Finished the game of life logic.