Change setter into property (Python style), generate initial squares in a way that doesn't take up so many lines.