code refactoring: fixed var game definition