Click on the butterfly to score a point. Once you reach 20 points, you will win the game. Once the win sign appears, a Super Mario-themed electronic dance song will play & loop for 10 times, & once the song has looped 10 times, the game will stop. The butterfly goes to the center of the screen when the green flag is clicked, & the score resets.
I made this using the butterfly clicker game video tutorial on the Hackingtons website. That's right - I take coding classes at Hackingtons!