use trigonometric function to favour angles closest to straight ahead