If robots are going to drive our cars and play with our kids, we’ll need to teach them right from wrong