drawing differencing squares on canvas