Added essential functions and tests of those functions to Card and Deck