in reply to Re: please solve this
in thread please solve this

No, the output is correct; M is two columns to the right of G and no need for any left motions (assuming the post has not been modified between when you saw it and when I did). It will be important to developing a solution that at least one of the test cases includes movement in each direction.

Dum Spiro Spero