BattleShip as implemented in Erlang