bugfixes and fair main planet spawning