Rat in a maze help me please

can anyone please tell me what’s wrong in this code it would be really helpful