battleship in JS