found a bug when I test it

at line 46, if you do not times 3, some positions would never be checked while some positions were checked many times.
Merge pull request #3 from fqcprodigy/patch-1

found a bug when I test it