Tried to fix an error where you couldn't make the amount of squares
smaller. Changed some function calls to minimize stack. Not working
entirely yet.