was adding only one half of tree
instead of pass, adding move statment at end