first attempt at integrating the "puzzle" and "deadend" elements into XSLT