Control the speed by holding the grey circle and moving your mouse. You can also control the speed with the arrow keys.
this used a lot of math This game is also a train game and is way better: https://scratch.mit.edu/projects/992835450