Woops, forgot to define my global static variable for the minimum dimension of a square...