updated voting functionality to disallow double counting

Use 2 (not 0) spaces for indentation.