Moral foundations and interacting neural networks