Code for the Spaceship game