Calculate Rectangles on a Grid | ScratchStats