put resetStatic in reset function of QLearning