simplify randWall function