using a range-based for-loop where applicable
simplifying 'voteHonestly()'