Quadtrees

To aid with collision detection and to speed up drawing, I added some quadtree code to my game and uploaded it to the pygame cookbook. It comes with a small example showing how to use it.