Implementation of a simple Battleships game in Haskell