CHANGE: Do not attempt to calculate a route where the distance is inevitably too great: this can significantly increase performance in cases where many ships are trying and failing to find routes because the distances are too long.