updated clearGrid to ask for new grid size