added debug draw to canvas renderer
added sweep and prune broad phase collision detection

Also fixed bounding box calculation