Conway's game of life implemented in Haskell