updated Qlearning