Improve AI behavior when using goto_x/y in WML

Makes the ai to use the best path when in WML goto_x / goto_y is used.
(This used to be a straight route)