Update SampleAI.js

Added some comments to make for better example code