Rat in a maze .......wrong output

does not show the right output …why???

code link :------------------------------