d3 drawing rectangles and dragging

Should we be translating the blocks using `d.x` and `d.y` here?