He sabotaged the cheaters. It's a bit different than just catching them and issuing the usual punishment. I think there is room for debate around the distinction, but from an ethical point of view one should avoid gray areas, and this guy actually teaches ethics - to this class.