Battleship in Java