AA: trying to find valid path