Team Leader function was returning 0 instead of 1 when the team captain was messaging AI. This optimizes, cleans up, and gets rid of edge-case buggy behaviour. Thank you ship_registry!