Fixes to ai
AI fixes for multiple players