altered tie mechanism to use a double-nested for loop
thought of a *much* shorter way to detect ties
Merge pull request #8 from dejay/master

Altered tie mechanism to use a double-nested for loop