Remove all the cards.
If the total value of pair of selected cards and all the cards between them is equal to 10, 20 or 30, then all those cards are removed. Jacks, Queens and Kings have a value of 10 in this game. The rows of cards are treated as a single wrapping row, where the end of a row continues onto the next row.