prevent nil value in AI
several typos in AI
a simple strategy for Amazing Grace