Simple Maze Solving Algorithm Python Coursera