refresh

suspend fun refresh(): Game

Refreshes the game state from storage (board and last player). Updates players to reflect the current board state. Increments the pass count if the board is unchanged but the last player has changed.

Return

The refreshed game state.

Throws

if the game is not started yet (board or players are null,empty).

if there is an error loading the game state from storage.