The phase change occurring in this scenario is condensation.
During condensation, gas particles lose energy and slow down, eventually coming together and forming a liquid as they stick to each other. This matches the description of particles freely moving but gradually slowing down and then sticking together to limit their movement.