It turns out Gary had snitched on Jimmy to further his betrayal, which is furthered when he convinces Crabblesnitch to make him the head boy.
It turns out. Gary had snitched on Jimmy. This was to further his betrayal. His betrayal is furthered. He convinces Crabblesnitch to make him the head boy.