added maze tracking