Pion condensation in relativistic heavy ion collisions