How to prevent a spawned static mesh from overlaping with another spawned static mesh?

So this is what i put but the static mesh still continues to overlap with each other. Am i doing something wrong? Also my game is a 2D mobile game so it makes it more harder to work