Changed drawing method of squares