many of the mining elves thus escaped from the darkness of the mines , for they were able to bore their way out ; but gwindor received a small sword from one who worked in the forges , and when working in a stone-gang turned suddenly on the guards .