Fixed choosing of AIs algorithm. Should no longer choose the same AIs multiple times.