fixed updateGridBg to include 2 dimensions
fixed updateGridBg to include 2 dimensions