implemented price grid snapping