Global variable not sticking

Ohhhhhhh, that's probably the issue! I was just playing around with the code and tried that out but I could see why that could cause the bug.

I'll fix that and test it out when I get home, thank you!