It took at least a couple of hours straight of coding and rearranging code, but I finally got it working again.
I never did figure out what the problem was though, I just knew it had something to do with one of the variables. I don't know the problem with the variable, so I was really flying blind here.
So now with the problem fixed, the next step is to test it on a real Odyssey². That will have to wait until later today because it's 3 a.m. and my eye hurts and I'm sleepy. It's bedtime. I just wanted to share the good news with you all since you seemed so interested in the project.