MIT creates method to force AI to comply with safety rules