He was so lost in his... thoughts would be one word for them, that he did not know where he was going. He didn't even register he had been punching the tree, nor why. His body, or something in him, had taken over, trying to inflict pain to drive away the dark thoughts, to establish some kind of control over himself. To put a stop to his own worst impulses.