An implementation of the machine learning algorithm SARSA.