fixed rotation so it goes in the direction of the non-obstacle path