Added base AI class.