private int[] GetWiredsInSquare(int[] Pos)
    {
        int p_count = count;
        int[] Wireds = new int[MAX_WIREDS_PER_ROOM];
        int cur = 0;
        for (int i = 0; i < p_count; i++)
        {
            if (WiredPos[i][0] == Pos[0])
            {
                if (WiredPos[i][1] == Pos[1])
                {
                    Wireds[cur++] = i;
                }
            }
        }
        Wireds[cur] = -1; // end..

        return Wireds;
    }