private static RefVideoCard calculateAverages(List<VideoCard> measureTheseCards, string cardName)
        {
            //Takes in a list of videocards that are of the same card.
            //Also takes in another string argument that is the cardname.
            string strippedIdFromName = Regex.Replace(cardName, "[^0-9.]", "");
            RefVideoCard finishedCard = new RefVideoCard();

            double totalPrice = 0;
            int totalCards = measureTheseCards.Count;

            //Counts them and average them
            finishedCard.SetCardCount(totalCards);
            foreach (VideoCard card in measureTheseCards)
            {
                totalPrice += card.GetPrice();
            }
            finishedCard.SetAveragePrice(Convert.ToString(totalPrice/totalCards));

            //Set the ID from the stripped cardname argument
            if (cardName.Contains("290X"))
            {
                finishedCard.SetId((Convert.ToInt32(strippedIdFromName)) + 1);
            }
            else
            {
                finishedCard.SetId((Convert.ToInt32(strippedIdFromName)));
            }

            //Return the finishedcard as a RefVideoCard object with the AveragePrice, ID, CardCount variables set
            finishedCard.SetCardName(cardName);
            return finishedCard;
        }