Implementation of agent-based crowd simulation