Another fix for testLeetGrid.js - remove unnecessary for loop