Updated program structure of spaceship