Loop break when answer is found