Fixed UCS and Astar so that they work with autograder
Fixed unc and astar so they work with the autograder