fixed bug in labyrinth recursive print