Make snapping grid not snap into other actors

Hi, so I have a blueprint system where I place a shape and it is snapped to a grid. What the issue is, is that when you are placing the shapes they can end up inside of each other and this makes it especially hard to place shapes when they are above you as they keep going inside of each other. The image is a line trace by channel’s break hit result. Any help is appreciated!