Thank you for playing the game!
The restart instead of undo button was a conscious game design choice, as I wanted to encourage the player to try a different approach to reaching the exit, if their path failed.