mapPaths prints all possible paths