Saving code in adventure mode