Code from my Artificial Intelligence class