Arduino absolute Positioning

If I remove the second while then it doesn't works.

Then the second "while" is probably doing something important. Can you guess what that might be?

Better yet, what does the mouse program library documentation have to say about the function MouseTo.move()?