replaced using the static LabyrinthFactory with using an instance of Factory