Added theoretical collision detection