use your mouse pointer to guide the dot so that it does not touch the box.
I got this idea from someone, but I improved it.