Quick suggestion on approaching this problem

FullyJosh:
I can't believe I made that mistake! Sadly it didn't fix the problem. I just tested it again now.

I think you have fixed that problem, but presumably it's not the only problem in your code. It's not at all unusual to have multiple bugs, and you will need to locate and fix each of them before everything works. To start with, now that you know you've made this mistake in one place, I suggest you carefully review the rest of your code for any other mistakes where you used an assignment instead of a condition, or vice versa.