drag the points to change the curve
thanks to this website for the formula https://javascript.info/bezier-curve