Adding infrastructure to pass the selected subject to the MazeGUI