space invaders functionality