changing Square to make scannedFrom a list of square pointers