Text this: An Iterative Optimization Algorithm for Planning Spacecraft Pathways Through Asteroids