How AI learned to be creative