Algorithm to create wall