Simulation of traffic at an intersection