An agent-based model for plausible wayfinding in pedestrian simulation