Refactored AsteroidScript