Made some changes that make it easier to see the example work.
The algorithm doesn't work perfectly yet...it recalculates the trajectory
but doesn't check to see if another collision might occur ( with the
same obstacle ). I just ran into that bug. It will need to redo the
collision detection and recalculation of a trajectory