def traceback(state):
    """
    Traceback function to print the path of the current state.
    """
    moves = []

    while state.parent:
        moves.append(state.action)
        state = state.parent

    moves.reverse()
    return ", ".join(moves)