Behavior of the guards in Zimbardo’s prison

How do you explain the behavior of the guards in Zimbardo’s prison study (Chp 10, Social Psychology) Check it out on YouTube (Stanford Prison Study)? What could be done to prevent this form happening in real prisons? 300 words