added Factory class to populate card slots