Moves all the simulation logic to qgame.qgame