Added check for identical indices in move col/row