try to implement an example of Q-Learning