The Frog and Butterfly

This Scratch code a Butterfly moving randomly across the screen until it touches the Frog. The Butterfly movements are random, but directed towards approaching the Frog. The butterfly also has boundaries that it can't cross.