Improved AI behaviour