Added some comments, added setting of lastg and one before last trajectory point, added checking of if game is on to do the prolonged tween. seems to work