Small changes to the AI class