I have the same problem. Did you figure out why the hero did not move to the flag?
@sailzhang Please post your code so we can take a look and help.
I figured out later that I got the indentation wrong. The hero moved correctly after I fixed the code. But thank you anyway.