miles had read in various journals during his years in medicine that shock tied directly into the pleasure centers of the brain in order to limit pain and discomfort when the body was in dire circumstances .