Glue contains water as well as polyvinyl acetate, a much longer and more flexible chemical compound. These long, flexible molecules move through the water like strands of boiled spaghetti. When the food coloring drops are added, the combination of water and polyvinyl acetate molecules prevents them from spreading widely.