Got undo / redo working except for physics (crashes).