How to add walls to a grid placement system?

So far I have implemented a basic furniture grid placement system much like others found on this forum.
Now I am trying to implement wall placement, but with the current system they take up the two grid spaces next to them, blocking furniture from being placed along the wall.

If anybody has some public projects or could help that would be greatly appreciated.

3 Likes