QLearning almost implemented