Totem Solitaire

In a distant tribe that lives in the forests of the Amazon, local shamans invented a special solitaire to check their mind.
We are in the game Totem Solitaire try to play it.
In front of us on the screen will be visible cards lying upside down.
We will need to match them in pairs.
We can have thirteen pairs in total.
For example, on the Aces, we can put the king, on the joker deuce, on the joker deuce, on the top ten three, and so on.
We can discard kings singly.
So picking up the pair, we will arrange our solitaire.