textToFile function takes fileName as parameter
refactored out rectangle1 string in favor of masterShapes file comparison