cardStack method created