Battleship game for java class