added movementmode to approach perimeter