Improved AI (prob6tune1).