After opening up its locally-controlled casino industry to foreign competition in 2001 , the territory attracted tens of billions of dollars in foreign investment , transforming Macau into one of the world 's largest gaming center .