The teams were wearing swimsuits as they raced in the pool