added game-tree builder and associated classes