he worked his way through the twisting corridors as he would a maze , keeping a running count in his head of the turns , in order that he might find his way back again , and found that the exercise allowed him to keep his emotions at bay , if only for the moment .