Sixth commit - Just kidding on that last commit. I turns out that I had a huge flaw in my design thanks to the fact that my F%&@$ TEXTBOOK WAS MISPRINTED. Printed Qi and Q. Can you believe that? What are the odds??!
Seventh commit - Executing..sort of. Still have to refine this a bit.