Collision detection woes over?

Once again, collision detection is my bane. I seem, however, to have solved my issues with it this time, with enough hours to spare to continue working on the game.

I guess this is a lesson for me to never underestimate the power of displaying debug information on the screen.