I SORT OF FIXED THE ISSUE

I, according Professor Johnson, unfortunately made a couple global
variables to pass between functions. It was simple, I needed to do it.
DON'T HATE THE GLOBAL PROFESSOR.

However, we still kind of get the issue I was talking about before.
Seems to happen randomly, I have to do some debugging to figure it out.