Why does the game end even when I don't get hit by a car or fall into the water?
The game ends if you stay idle for too long. To avoid this, always keep your character moving forward.