How the deal works
The board uses four tableau piles. You always deal one card to each pile, then collapse equal visible ranks into the leftmost matching pile. Whenever one pile holds all four cards of a rank on top, that group is discarded.
Once the stock is empty, the piles are collected without shuffling and redealt. If that gather step recreates a stock order that appeared before, the game is effectively stuck in a loop and the deal is over.