i'd just do a dslist for your card collection, dupe it on room, sort it, then loop through it deleting the 0th item after creating a card, or adding to the number variable of the card if you have it created already.
then just remember to have your battles also use a duped ds list, in case your game creates new copies of cards to include