Added a Qlearning implementation that remembers its last action