jack finally understood , as the sun began to force its way up into the world again , that he was in a broad valley , and the rim far off to either side was not the edge of the world but the craggy top of a range of hills .