Influence table completely working now. Even supports newly added stakeholders and recently removed stakeholders. Yay!
Sorry the code is messy as hell. I'll clean it up later.