buggy gametree code