Improved AI a bit