animation and bug fixes for traffic flow