Added dragging for the blocks