Game of Life implementation in Haskell