Square rendering functions are all defined from a common function, lessening the amount of code