collision detection begin