countdownSpectator method
countdown for player time, if game has timeLimit
is being used in ChessBoardWidget to start countdownSpectator when widget is created
Implementation
void countdownSpectator(ChessBoardInterface game) {
if (game.timeLimit != null) {
game.onTimeOut = () {
checkForGameEnd(game);
};
}
}