Dominos game detect if all provided dominos can form a connected chain print the sequence of this chain