Explorer breaks the loop when found valid path