Refactoring of assignCards, pt. 1