Java Most Efficient Algorithms For Battleship