Creating custom number of cards

Fixed for loop for creating custom number of cards