forces rectangle/circle creation to grid coordinates