Who decides what is “right”?
If you build a morality machine, those morals are not absolute truths, they are a result of some human weighted input. Any look into the wonderfully complex philosophy of ethics will showcase that “rightness” looks very different to various human thinkers.