Implementing DFS,BFS,UFC,IDS on a Maze using Python