Maze Generation Algorithm Python