detect of collision in mousemove