and by the third night , the townspeople knew what had befallen them - how their clever bargain with the devil had rebounded upon them - and they were in a panic , and it was a great game to outsmart them , to hide in the multitude of shadows that made up their twisted streets , and to tear open their most extravagant and clever locks .