added checkIfMoveResultInlock function