Refactoring and starting to implement QLearning player