iOS-tut Assn3: extract cardAtIndex to MatchingGame