in that year also the great counsels of maedhros were almost complete , and with the reviving strength of the eldar and the edain the advance of morgoth was stayed , and the orcs were driven back from beleriand .