Added stop on stuck and wander distance limit.

Added:
* Added the behavior to stop the bot when it thinks it has become
stopped.
* Added a wander distance setting where the bot will disengage any mob
that exceeds the wander distance. (i.e. goes wanderdistance yards away
from the nearest waypoint)

Changed:
* The code has been simplified in the SetPositionToNearestPoint function
and new comments have been added for clearness.
* DetectionDistance has been changed to only accept integer numbers; you
can no longer set it to 5.43 only five or six.
* The view has been widened so that the setting window's vertical scroll
bar is less obstructed.