add collision detection and stop animation