You can do this with rexrainbow "GridMove" behavior. The code for this is very simple.
Just add the "Board" & "SquareTX" plugin to your project.
Add a new sprite "tile" and give it the behavior "Chess".
Add the "GridMove" behavior to your player.
On start -> Fill board with "tile" //tile is a sprite object for your ground.
On touched object "tile" -> Player move to "tile.Chess.LX, tile.Chess.LY"
All plugins and behaviors can be found here.
http://c2rexplugins.weebly.com/
Regards
Andy