make dragging the tiles and snapping to grid work!