the orcs fled before them , and they were driven forth from mithrim with great slaughter , and hunted over the mountains of shadow into the great plain of ard-galen , that lay northward of dorthonion .