Select cards with an equal or adjacent face value and repeat until there are no valid cards to add to the chain. Make sure no cards are remaining to finish the level.