added setState method for given card and made card comparison be isEqual instead of ==