Simple Maze Solving Algorithm Python Example