The game battleship in java