Detect when you are about to solve a collision and when you have solved it