Implementing the game Go in Haskell