What is the primary event that lead to the formation of the moon?