add a rectangle to the grid