fixed expectimax and changed run AI to parse the generated tree to make the correct moves.