Problem with overlapping parts

Hey guys.
I am building a domino game in which the opponent’s pieces (CPU) connect automatically when verifying that a matching piece is on the table.

The point is that I am having a problem of overlapping the pieces when I have 2+ identical objects.

Any ideas on how to solve this? Thank you very much in advance.
Captura%20de%20tela%202021-05-20%20204454

Could you explain you problem in a bit more detail? What do you mean by overlapping pieces, and what is the problem this causes (i.e. what does the CPU player do when the overlapping pieces situation arises)?