the earth began as a ball of burning matter