implementing QLearning