stalin had introduced them recently as a way to restore morale in the red army , which had been traumatized by the purges of 1938 , when so many of the military leaders had been executed , charged with being traitors in collusion with nazi germany .