In the middle of implementing using of text files. Width and depth are switched somewhere