Agent based simulation of pedestrian behaviour