added working AI