The YMCA of Greater Hartford is moving from the Hartford 21 complex, which is attached to the XL Center in downtown Hartford, after nearly a decade.