/// <summary>
        /// The function to call when one of our cards is left clicked in the registry card list control.
        /// Removes it from the the player registry list control and adds it to the deck.
        /// </summary>
        /// <param name="baseObject"></param>
        private void AddToDeck(BaseObject baseObject)
        {
            UIObject image = baseObject as UIObject;

            DebugUtils.AssertNotNull(image);

            image.Die();

            DebugUtils.AssertNotNull(image.StoredObject);
            CardData cardData = image.StoredObject as CardData;

            DebugUtils.AssertNotNull(cardData);

            Deck.Cards.Add(cardData);

            DeckCardListControl.AddCard(cardData);
        }