I’m creating a game in a 3×3 board where each move consumes active cells and creates used cell instead. I want users to be able to undo moves, and they have a button alongside other buttons like go to the next or previous level. But this i…