AI being used to control deadly weapons