Using localStorage to save game state, saving it when there is a change to the tiles status. It's a little bit inefficient when a zero group is updated as it will store the grid multiple times at once. But it does save the state through sessions. clearing when necessary. - @Midnight-Conqueror