Basic AI updated

Available moves function needs fixed. AI needs improved in general.