Colored pieces are laid out on a game field. They form a symmetric pattern. After the beginning of party the pieces mix up chaotically. Your task to get a initial pattern. You can move a row or a column only. Any line of pieces are closed in a ring. It means, the pieces, getting out of a game field, will appear on the opposite side.