@staticmethod
def _pos_isequal(pos, pos2, key_indices):
    """
        Сравнивает две позиции
        :param pos:
        :param pos2:
        :param key_indices:
        :return:
        """
    for i1, i2 in key_indices:
        if pos[i1] != pos2[i2]:
            return False
    return True
