in reply to gaming board design

Instead of attaching walls as properties to the squares, you can make them squares on their own. So
|_|_|

Would translate to

# # # #####

With 0-index arrays, all squares with even indexes are walls, and if you have players, they can only move in steps which are multiples of two.