Path Finding Move() Problem

I have problem with move() as show in link below. The agent can pass through the wall in y-axis direction which not suppose to happen, but if the agent move in x-axis it could not pass through the wall as intend to. Could you tell me what would be the problem? :face_with_spiral_eyes:

https://streamable.com/ed7crm

the code are as follow
imageQ1
imageQ2

your consider in this matter is highly appreciated

never mine, I solved the problem. :confounded:
i kwai ei