added puts call to indices of cells in same square method