The AvoidForce function