Fixed automatic frames refreshing in maze