As the photons entered the cloud, their energy excited atoms along their path, causing them to lose speed. Inside the cloud medium, the photons dispersively coupled to strongly interacting atoms in highly excited Rydberg states. This caused the photons to behave as massive particles with strong mutual attraction (photon molecules). Eventually the photons exited the cloud together as normal photons (often entangled in pairs).