Promotion of cooperation induced by the interplay between structure and game dynamics