Simple Maze Solving Algorithm Python If Statements