Traffic simulator in C++