working on x and y axis constrained draggable grid
constraining properly on x- and y-axis during movement