Please run in forkphorus: https://forkphorus.github.io/#410892767 If you don't... (R.I.P your computer or whatever platform you run scratch 3.0 on)
I borrowed a lot of comlex math. AGH SO LAGGY.