For every space $(X,x)$, show that $[\alpha], [\beta] \in \pi_1(X,x)$ commute if and only if the map $$f: (\mathbb{S^1} \vee \mathbb{S^1}, \star) \rightarrow (X,x)$$ defined by $$ f(s,t)= \alpha (s)\,\,\text {if}\,\, t = \star$$ and $$f(s,t)= \beta (t)\,\,\text {if}\,\, s = \star$$ has a continuous extension over $\mathbb{S^1} \times \mathbb{S^1}$.
I have an idea how to do this, but I don't know how to add in the details. Construct the torus T from W by attaching a 2-cell. Then, that 2 cell by construction gives us a homotopy from identity to $\alpha\beta\alpha^{-1}\beta^{-1}$. How can I use this idea to prove the result ?