the magic carpet follows your mouse, use it to stop the ball from touching the yellow line.
I based this on the scratch instructions.