Need help with creating barriers/walls with boolean

This is where I got the original code. Thanks for the reminder.