added move direction cell order dependency