The man asks a question, i try to answer I must say only with your answer i was able to figure out what he tried to achieve
Messy indeed, but hey, i aint gonna judge
Just helping him understand the engine. Optimization can come later (if he gets to that stage).