Robots Use AI to 'Feel' Pain and Self-Repair