implemented new heuristic that is the distance of 'X' to exit; function
valid now checks if the 'X' car is correct; renamed some variables in
function search just for fun