Machine learning reinforcement program using MDP