Update gridWorking.js

Make the clearGrid() function more efficient.