Explain the concept of the "Mandate of Heaven." How does a ruler gain or lose their "Mandate of Heaven?" Please write AT LEAST 4-5 sentences.