Starting to work on bezierCurve, ugly implementation