It started with an 'impossible task' and led to AI deciding it needed to act as a collective intelligence