snap to grid done

+ tests