using expectimax optimization as AI driver