but he climbed up on his bunk as if he 'd finally thought of a solution to his problems , which gave virgil hope that the pain he was suffering because of that fight in the dining hall would n't be wasted .