Implementing a competitive algorithm for the AI in battleship.