Their purpose is to prevent the water from expanding and breaking the pool wall when it freezes.
(Their purpose; is; to prevent the water from expanding and breaking the pool wall) (it; freezes; )
Their purpose it
is freezes
to prevent the water from expanding and breaking the pool wall