This is called rewinding chess in real life! I would love to know if you came up with the idea independently because it's great.
It was thought of independently, we had no idea about Rewinding Chess, thanks for letting us know :)