When flag clicked, the beetle will follow the cursor. The black block is the "Pathway to Freedom". Beetle needs to touch it to win. If touching edge, you will restart.
I got this idea from my buddy Stanford, (who gave me the idea for dizzy cat) when we made Scratch games. As he would say now, BOOTY!