Added broad-phase collision detection