change match to a card class method. simplify chooseCardAtIndex