Revert "thought of a *much* shorter way to detect ties"

This reverts commit 353063fd6e89dfabb15d5fc6ecce53099e242863.