What @Texas Splash said.
Without access to test the old water this is only speculation but the symptoms would suggest that your CYA (cyanuric acid also called stabilizer) was way too high, the effect of which is to greatly suppress the ability of the chlorine to do its job; kill algae and...