Update AIoptimized.cpp

you're going to dislike how i did this