rand encounter func logic fix

added logic so random walking encounters don't happen when someone is in
a town, the rest of the logic to set town to true has yet to be
implemented