he , who always knew not only exactly what he was doing but what everyone around him was doing , who even studied a public restroom from a strategic standpoint before entering it , had let himself get so wrapped up in his thoughts he had n't paid any attention to what he was doing or where he was going .