Finished the learning algorithm. Renamed the agent to something more... civil.