move collision checking to before moving player, but still in the game loop.
Edit: Argh: Page turn fail.
Here's one I'm not sure was brought up: pxl-test doesn't work on black stuff, so you'll need a mask for collision unless you border everything. In fact, it's better in many ways so that you can have passable black stuff and such, plus background images don't collide.