Battleship in JAVA