modified calculateHeadingToPoint90; passed tests