Clear grid and set number of squares per side