Type your scoresheet, catch every illegal move, and fix it in place. No branching, no restarting from scratch.