fixed drag shape behaviour so that the user cannot drop a shape in an invalid location outside of the grid.