fixed star bug and curve bug. Still need to optimize nearestPointOnCurve, that's pretty much it