implemented code to ensure planets do not overlap each other when spawned