This program simply crashes scratch due to a paradox glitch that you can replicate very easily. I did this on my school iPad so I don't know if it works on high-power devices.
All code by myself.