added singleton pattern to Card and Deck classes