Under the Tunnels Problem Lunchtime

What is wrong with my code? I have created a graph for each tile with its linked tiles and tried to find shortest path from first tile till last. Can someone please give me a counter test case?

https://www.codechef.com/viewsolution/29184257