Remove all the cards before running out of lives.
Touch on pairs of cards to reveal them. If they are the same, they are removed. If they are different, then a life is removed instead.