AI agent for dots and boxes game