if you want to, you can run this in scratch, but it's gonna be slow if you want to turbo mode, go to turbowarp
feel free to take some code for your own projects :) took me a while to get it right