Voting system works correctly