Complex sentence: After the battle the Scots withdrew to Leix, while the Anglo-Irish forces kept them under surveillance from nearby Castledermot, while their leader withdrew to Dublin.
Split into simpler sentences: After the battle the Scots withdrew to Leix. Meanwhile the Anglo-Irish forces kept them under surveillance from nearby Castledermot, while their leader withdrew to Dublin.