Finished maze imperative part