[updated] maze methods