Update Battleship.java

Added warning