in defeating the monsters , aside from freeing himself of the tree , andrew gained confidence , which would help him greatly on his search to find a way out of the forest and to wherever it was he needed to go .