Optimize boolean in SinglePlayerAI