Finish labyrinth non-recursive version