in the visualization, update grid dimensions to make room for a tree to be added