Fix a bug when eliminating symmetry with duplicated tiles on non-rectangular board.