Not working labyrinth code