A game can look correct until the player presses Restart. That button is one of the fastest ways to expose hidden state. In a small browser game, I treat restart as a full lifecycle test rather than a visual reset.
Source: [Dev.to](https://dev.to/zzzu2221/why-restart-bugs-reveal-hidden-game-state-2njc)