Implement broad phase and a piece of narrow phase.