A dangerous combination of gangs, drugs and boredom encourages inmates to commit violent offenses in prison.