Code sharing for my CS482 (Intro to AI) team. Code quality may vary. Fellow students: do not steal code to cheat!