Created card class. Tested the click method for the card class