Zig Zag and Zoom bug (python)

My hero gets stuck before the third zigzag. I think my code is correct, but can you check it for me?

change the if statement in mod9(n) to a while loop

Like he said change it

Oh, I didn’t realize that. Thanks!