Implementation of the game of life