a simple implementation of Conway's geme of life