update to have winner only if not a tie
refactor to remove unused code