save/load states for the box2d simulation