Exploring the dynamics of individual pedestrian and crowd behavior in dense urban settings: a computational approach