Split the Card constructor, created a new method that checks if the card is valid or not.