Better maze input