avoiding collision, canvas, animation, ai