add vector class, calculate next point, cannot pass your own trail - but there is bug