Add equals and hashcode method to card