Let $X=A\cup B$ be an open cover of $X$ where $A,B$ are simply connected and $A\cap B$ consists of 2 simply connected components $C_1, C_2$. Show that $\pi_1(X)=\mathbb{Z}$.
I tried different approaches similar to the proof that $\pi_1(S^1)=\mathbb{Z}$. The thing is I don't think I can find a simply connected covering because I don't think $X$ must be locally path connected. I did manage to show that every loop in $X$ is homotopic to an arbitrary loop starting at $C_1$, travelling through $A$ to a point in $C_2$, then returning to $C_1$ through $B$, repeating this "walk" some $n\in\mathbb{Z}$ number of times.
What I'm actually stuck with is showing that two such loops are not homotopic, particularly that one such walk around $X$ is not nullhomotopic. I thought assuming that this loop is nullhomotopic will imply that $A\cap B$ is connected, but I haven't found such a proof.
Have you tried a proof by contradiction using the Lebesgue number lemma? Assume that you have a loop of the form described, and assume that $H : [0,1] \times [0,1] \to X$ is a null homotopy of that loop. You get an open cover $H^{-1}(A) \cup H^{-1}(B) = [0,1] \times [0,1]$. Let $\lambda$ be a Lebesgue number. Subdivide the square $[0,1] \times [0,1]$ into little squares whose diameter is less than $\lambda$. Apply the Lebesgue number lemma. From there, see what conclusions you can draw.