A car mechanic had a sealed bucket containing a substance in the gas phase. She left the bucket outside over the weekend. When she returned, the substance had changed phase, and the substance was in the liquid phase. What happened to the molecules of this substance?