Bug in logic for creating checkerboard grid

the two last parameters of rect() are its width and height

Chrisir

    rect(i*gridDimensions, 
      j*gridDimensions, 
      width/gridDimensions - 5, 
      height/gridDimensions - 5);