Aw man, I thought I had it working... sorry for the let-down. I'llt take another swing at it hopefully tomorrow.
It's ok! no need to worry about it haha
Try it now. I realized I also left some debug code uncommented... whoops. I tested it out a bit more thoroughly and it seems to be working better now.