created constructor for maze generator