abstracted break_ties method to reduce repetition and complexity