Added walls around invalid positions and board.