JS version of battleship version 2