battleship solution