optimized buddy/enemy grouping algorithm for most buddies sitting together
Merge branch 'work-buddyships-into-groupings'