Rat in a maze problem code

THIS IS MY CODE LINK POINT OUT MY MISTAKE