I was playing with my friend in his world for a while then he had to go off so when he left the world, it was still running for abit so then I left the world by pressing the button while he already left, I think this saved over my main world as I found his world in my device, fortunately I did not lose much but this could cause lots of problems in the future if not fixed.