Implementation of Conway's game of Life