Slight restructure. I've made the following methods private; generateRandomCardNumber(), cardNumberToString(), generateRandomCardSuit() and exposed them through a new (renamed) createCard() method.