currEvalue = currEvalue.parent;
}
}
// reverse the list
Collections.reverse(revMoves);
Solution sol = new Solution();
for (Move move : revMoves) {
// Piece pieceToMove = move.getPiece();
// Location nextLocation = move.getNextLocation();
// System.out.println();
// System.out.printf("\tcom.oti.Move: %s to %s\n", pieceToMove, nextLocation);
sol.add( move);
}
return sol;
}