Add a break criterion to Qlearning

(after a simulations on 10000 episodes, it diverges totally...)