Assignment 2: Algorithmic AI Agent