correctly tallies votes