creating a function to determine what card is what