set intial value of speed and jump