he discovered himself on a wooden cot in a small room with slanted asbestos roofs , wooden walls and lowly glass windows through which the distant hills , vales and the clear sky were visible and he racked his brains to realize how he happened to be there , in the strange surroundings .