Reference the source code. All the doLoop() function does is wait for a link
to be clicked before resuming program execution. This can be used as a "wait"
your turn to click an object and proceed with program execution.