Third programming assignment for Weiss' Spring 2014 AI class.