Implemented equals and hashCode for Card.