Add domain specific logic to choosing moves

Fix several bugs in node selection