interface of LearningAlgorithm cahnged to know about both actions, previous and the one selected for the future