This controls the running speed of the player using the same values for speed as the RUNNINGSPEED variable passed at gamestartup.