Click on the sprite to see what happens. (A project using 10 blocks.)
I added the control of green flag and instruction to start. not sure whether it exceeds the 10 blocks. Thanks, tvstrojans, for the interesting script.