Wrote candidates and created getIndices

getIndices gets the indices required for candidates to function proper;y