Let $ABCD$ be a square with side length $1.$ A laser is located at vertex $A,$ which fires a laser beam at point $X$ on side $\overline{BC},$ such that $BX = \frac{1}{2}.$ The beam reflects off the sides of the square, until it ends up at another vertex; at this point, the beam will stop. Find the length of the total path of the laser beam.