Move square by square in GUI like old web game

Hello.
I asking if you have a good start point to develop a movement system like in old game like this :


I think, the easiest way is to make a lot of button, and when you click it save your position, but, do you have better way to do it ?