private KeyValuePair <SudokuCell, List <int> > GetPairByKeyType(SudokuCell key)
        {
            KeyValuePair <SudokuCell, List <int> > pair = discardedCellValues.Where(u => u.GetType() == key.GetType()).FirstOrDefault();

            if (pair.Key == null)
            {
                throw new KeyNotFoundException();
            }
            else
            {
                return(pair);
            }
        }
        public bool ContainsKey(SudokuCell key)
        {
            KeyValuePair <SudokuCell, List <int> > pair = discardedCellValues.Where(u => u.Key.GetType() == key.GetType()).FirstOrDefault();

            if (pair.Key == null)
            {
                return(false);
            }
            else
            {
                return(true);
            }
        }