refactoring interface ad game