Implemented initial QLearning