simulation.cpp pre-alpha++