getCarWaiting function implemented in Intersection