A little optimization(maybe). But the AI still couldn't finish