Fixed win-tie checking