Assignment#2 for AI in Berkeley