added drawing of y tree, vixed for loop indexing, added x tree node
selection