updated clearGrid()