At a molecular level, what happens as a gas becomes a liquid: