Facebook taught an AI the 'theory of mind'