Brute-force now exits after checking all possibilities up to specified length