implemented draggability of blocks