Design and Implementation of Multi Agent Systems based on Reinforcement Learning