totalDistance.add(new DoubleObject(distance));
// Let's set B to A, and clear B, so B can be set on the next iteration
A.clearAll();
A.set(B);
B.clearAll();
}
}
}
// Add in the distance of the outside circle that the plane will have to travel as well