memory puzzle and entities AI