This is a recursive algorithm that takes into consideration the points and from there creates the bazier curve for that points, with cool animation.