Click on the green flag to start the program. Press up, down, left, or right keys to move the wand. Only when the wand meets the color-changing ball, and press space at that same position, then music will play in the background. Also, every time you hit space, a new color would appear on the ball and the music would restart.
Thank you Ms.Momeni for helping me understand how to code and create this fun little program. Also, for all my friends who helped me in this journey.