Restructured setDictionary into cardDictionary