Implemented q learning algorithms for value-based games.