Small Variable Change

I made it so that, instead of calling ((xscale+yscale)/2) it merely
references avgscale, which == ((xscale+yscale)/2), whenver said number
was used.