Copied code from Playground to main project and fixed missing
declaration issue. createDeck() now function of struct Card