Refactoring Frame and Game