Fixed grid square dimension computation bug. Removed console logs