You have to go as far as you can. Your speed increases every second, but it will reset if you hit a red block, so you should avoid them