Add card factory back into the cards library