Moving the number of attempts out of the search.
Merge pull request #275 from nanan9177/blockly_fix

Moving the number of attempts out of the search.