Creating the rocket's movement function