Implemented Voting and fixed errors