updated voting functionality to disallow double counting

Line is too long. [297/80]<br>Incorrect indentation detected (column 2 instead of 4).