private void UnselectCellWithCard(bool removeCard) { if (selectedCellWithCard != null) { selectedCellWithCard.Top().IsSelected = false; if (removeCard) { selectedCellWithCard.Pop(); } selectedCellWithCard = null; } }