Rinsing the cooked pasta in cold water stops it from cooking. It also removes the excess starch, so the noodles will not stick together as they cool.