The distances in the random walk are unit positive or negative.
In the calculation for the distance, $D_N$ traveled after $N$ steps, the author uses $D_N^2$ instead of $D_N$. From The Feynman Lectures on Physics, Part 1,
The expected value of $D^2_N$ for $N>1$ can be obtained from $D_{N−1}$. If, after $(N−1)$ steps, we have $D_{N−1}$, then after $N$ steps we have $D_N=D_{N−1}+1$ or $D_N=D_{N−1}−1$. For the squares, $$D^2_N = \begin{cases} D^2_{N-1} + 2 D_{N-1} + 1\\ \quad\quad or\\ D^2_{N-1} - 2 D_{N-1} + 1\end{cases}$$ In a number of independent sequences, we expect to obtain each value one-half of the time, so our average expectation is just the average of the two possible values. The expected value of $D^2_N$ is then $D^2_{N−1}+1$. In general, we should expect for $D^2_{N−1}$ its “expected value” $\left\langle D^2_{N−1} \right\rangle$ (by definition!). So $$\left\langle D^2_N \right\rangle = \left\langle D^2_{N−1} \right\rangle + 1$$ We have already shown that $\left\langle D^2_1 \right\rangle=1$; it follows then that $$\left\langle D^2_N \right\rangle = N$$
If I take $$ D_N = \begin{cases} D_{N-1} - 1, & \\ or & \\ D_{N-1} + 1. & \end{cases}$$
and then average out both of them to obtain $\langle D_N\rangle = \langle D_{N-1}\rangle$. So this results in $\langle D_N\rangle = +1$ or $-1$ (because $D_1 = +1$ or $-1$) as opposed to the given $\sqrt N$.
Where in my idea did I go wrong?