its thick right arm held a razor-sharp sword that glinted in the candlelight and its short powerful legs moved restlessly as the bug shifted its weight from one large foot to the other while it sized up the potential enemies .