checks if there is a tie