private void OnMoveDone(object sender, EventArgs args) { lock (_tilesLock) { _canSelect = false; bool found = false; for (int i = 0; i < 8; ++i) { for (int j = 0; j < 8; ++j) { found = CheckMatch(Tuple.Create(i, j)) || found; } } if (found) { for (int i = 0; i < 8; ++i) { for (int j = 0; j < 8; ++j) { if (_tiles[i, j].ToBeDeleted) { _window.RemoveTile(_tiles[i, j]); _tiles[i, j] = null; } } } } else { _canSelect = true; } } }