tracking when a game ends (all cards are matched)