Move AI to coffeescript
Move AI to coffeescript