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

So this could be improved on but all I did was use the ThirdPersonExample project and added the following blueprint in the ThirdPersonCharacter:

Then when I ran the game I pressed num_1 a few times and produced the following:

I did a Capsule Trace instead of Box trace because I decided to spawn the character at random locations which uses a cylinder for it’s Simple Collision.