Move the to == from test, so as to return as soon as we find a path. The