along its leading edge and built into the dam was a series of concrete bunkers each of which housed one of the giant turbines which generated electricity as they were turned by the regulated flow of the water .