I think we can make a transition matrix with only $5$ states. The $5$ states will be $0, 1, 2, 3, 4$; each corresponds to the number of Jacks we have in our hand.
$$
\begin{array}{c c}
& \begin{array}{c c c} 0 \ & 1 \ & 2 \ & 3 \ & 4 \ \\ \end{array} \\
\begin{array}{c c c}0\\1\\2\\3\\4 \end{array} &
\left[
\begin{array}{c c c}
\frac 23 & \frac 13 & 0 & 0 & 0 \\
\frac 14 & \frac 12 & \frac 14 & 0 & 0\\
0 & \frac 12 & \frac 13 & \frac 16 & 0 \\
0 & 0 & \frac 34 & \frac 16 & \frac 1{12} \\
0 & 0 & 0 & 1 & 0
\end{array}
\right]
\end{array}
$$
Please check my work on those transition probabilities. From here, we're going to do what's known as 'first-step analysis'. Let's define $\mu_i = \mathsf E[\text {number of steps to reach state $4$ | we are in state $i$}]$. Then we are looking for $1+\mu_3$ because when we start with $4$ Jacks, we play $1$ swap and move down to state $3$ with probability $1$. Then we want to know the expected number of swaps we have to play to get back to state $4$. Let $p_{ij}$ be the transition probability from $i$ to $j$ and the consider the following:
$$\mathsf E[\text{number of steps to reah state $4$ | we are in state $3$}] = 1 + \mathsf{E}[\text{number of steps to reach state $4$ | we are in state 2}]p_{32} + \mathsf{E}[\text{number of steps to reach state $4$ | we are in state 3}]p_{33} + \mathsf{E}[\text{number of steps to reach state $4$ | we are in state 4}]p_{34}$$
This is by the Law of Total Expectation, and the $+1$ is because we did $1$ swap to move states.
$$\therefore \mu_3 = 1 + \mu_2 p_{32} + \mu_3 p_{33} + \mu_4 p_{34}$$
Note $\mu_4 = 0$. By similar reasoning, we can design this system of equations:
$$
\mu_0 = 1 + \frac23 \mu_0 + \frac13 \mu_1 \\
\mu_1 = 1 + \frac14 \mu_0 + \frac12 \mu_1 + \frac14 \mu_2 \\
\mu_2 = 1 + \frac12 \mu_1 + \frac13 \mu_2 + \frac16 \mu_3 \\
\mu_3 = 1 + \frac34 \mu_2 + \frac16 \mu_3 + \frac1{12} \mu_4 \\
\mu_4 = 0
$$
When I plug this system into Wolfram Alpha, it gives me $\mu_3 = 255.$ Since we are looking for $1 + \mu_3$, our answer is 256.$