Implements A* algorithm for fleet movement