When you click the flag, the rainbows will bounce on the screen and the screen will clear every 10 sec.
Udemy's Scratch Game Programming helped me, special thanks to instructor @AlSweigart for his help.