Added several functions to AI and cleaned the runner up a bit