code refactor and add smooth spaceship rotation