Game of hackenbush implemented in Haskell