Wrote very messy but functional kill messages algorithm