public void DoBoardClear() { if (BoardClearItems > 0 && CurrentState != GameState.GameOver) { SoundBoard.PlayBoardClear(); BoardClearItems--; BoardClearButton.Current.UpdateCount(BoardClearItems); for (int r = 0; r < Rows; r++) { for (int c = 0; c < Cols; c++) { if (Board[r, c] != null && !Board[r, c].IsPending) { GameBlock.Despawn(Board[r, c]); } } } SelectBlock(null, null); } }