Added a set() call to cards, to prevent duplicates