ChessTree building
The leafs of the chess tree are connected to the figures matrix using pointer to pointer
The chess board is in its own KDTree where every chess field is a BBox.
The leafs of the ChessBoardTree are connected to the figures matrix (using pointer to pointer) and when we make a move and change the figure matrix there is no need to update the ChessBoardTree