C++ Simulation Engine