added validation + cleanup
moved XCoordScore here
new alternative ordering method (DFS vs BFS using Stack vs Queue), xcoord score only relevant nodes