I FIXED IT!!! Finally! Apparently it kept crashing because when removing your combo after 30, there'd be a 1/1000 chance it would remove 10 combo 3 times in a row (it removes between 1 and 10, chosen randomly), and then remove 1 more, thus making your combo be negative 1. And then it would use the square root of that. Which is bad.