seems you said it died and produced white smoke.
"But when I put it into gear or accelerate, it will die and produce lots of white smoke."
now you say it produces white smoke at idle and and then dies
which is it?
And I have a hard time believing you cannot see where the white smoke is...