The game ends if you stay idle for too long. To avoid this, always keep your character moving forward.