Backtracking Maze Algorithm Python Template Class