it used to be that the headmaster delivered his punishments swiftly in order to serve as a warning to other would-be rule breakers , but now even the headmaster was at a loss for what to do with him , and tended to drag his feet .