eliminated the 'overflow' of other threads after the solution has been found.
now fails more elegantly when a solution is not found