Go point counting exercise for Haskell