there was an explanation that roofs frequently caught fire and were often rebuilt , but the people had devised a very ingenious way of building a fire in the middle of the pit , evacuating the smoke through a central hole in the roof , which was apparently also the entrance , and a fresh air intake drawn from one side of the pit through tunnels up to the surface .