Get to the flag. Use arrow keys. Click the arrow to restart. If you touch the yellow line, you will restart the level.
At the end, move the bug to the corner again. I had to add the white part or the game would be impossible.