implementation of the Conway's Game of Life