refactored random asteroid placement to use function call