How did the Communist Party of China won the Civil War against the Nationalists even though the Nationalists had an advantage in both troops and weapons and controlled a much larger territory ?

by Vilayb

As I was reading about the Chinese Civil War I came across this piece of information : "At the beginning of the war, the Nationalist had an advantage in both troops and weapons, controlled a much larger territory and population and enjoyed broad international support. The United States also assisted the Nationalists with hundreds of millions of dollar's worth of military supplies. "

So I'm wondering, how did the Communist Party took over the Nationalists and won the Civil War, forcing them to retreat to Taiwan?

Thank you for your answer!

Jtwil2191