AI: move of MDP demo code to main section