Saving and loading obstacles to JSON working