The game state tree is usually not built as a complete data structure. Instead, states are evaluated as they are created, and most of them are discarded in the process. Often a linked list is maintained from a state that is evaluated back to the current state of the game. But if one move turns out to be much better than the other, then the entire line for poor movement will be discarded, so it will not take up memory space.
, , - . , , , . , ( ) . , , , . , , .