New ball-ball collision code