put planet path drawing directly in the loop instead of an extra function.