Fix any grammar problems in the given paragraph:
He tought how could he solve his problem and finally he decided to break out.
He thought about how he could solve his problem, and finally, he decided to break out.