This is for Programming Homework 1 of Artificial Intelligence.