How did the Soviet Union collapse?

My personal view is that President Reagan presented it with too many challenges on the defense front that it could not possibly handle without destroying its own economy which was already badly overstretched. coupled with the fact that Gorbachev was a pretty pragmatic individual, who realized that the US would never want to attack the USSR anyway.