When all sets of cards have been laid down , the game ends .
The game ends when all the cards are face up in pairs .