Fixed and improved wandering algorithm

Moved method "se balader" out of the loop, agents now won't get stucked
in one place after a certain time.