     }
     
     
+    /**
+    Removes last view from grid
+    */
     func removeLastGridView() {
         guard viewsToDisplay.count > 0 else {
             print("Error: removeLastGridView called on empty grid")

    
    
    //determines whether all leaves are same layer
    func allLeavesSameLayer() -> Bool {
        var set = false
        var layer = -1
        

    }
    
    
    private func getNodeViewCount() -> Int {
        var count = 0
        for view in views where view.isKindOfClass(UIStackView) {
            count++
