Replaced overwritten code for mapping Ballots and Candidates