AI functions needed to make suppliers implemented. TODO: rearrange some code, for instance, TradeIO and NavigationIO modules.