Broke voting solve up into smaller functions and debugged