What prevented China from having a lot of contact with the rest of the world?