Might Sand Yak! and Oasis, should have restriction on flags.
Instead of coding a solution on the method it suggests, I can simply create a method to manually dodge the Yaks (Mighty Sand Yak!) or have the hero cross the road to the Oasis (Oasis).
flag = this.findFlag(“green”);
position = flag.pos;
x = position.x;
y = position.y;