How to move square by square, dungeon crawler?

For the next with the same problem but we must first make the two events (move and rotate) posts by Marooney …