I managed to get it by finding the indices of the desired walls in the list by their level parameter.