public boolean hasSolid(HitBox hb)
    {
        int x = hb.x;
        int y = hb.y;
        int w = hb.width;
        int h = hb.height;
        
        int rightBound = x + w;
        int bottomBound = y + h;
        
        if (x < 0)
            x = 0;
        if (y < 0)
            y = 0;
        if (rightBound >= this.width)
            rightBound = this.width - 1;
        if (bottomBound >= this.height)
            bottomBound = this.height - 1;
        
        for (int i = x; i <= rightBound; i++)
        {
            for (int j = y; j <= bottomBound; j++)
            {
                if (filled[i][j])
                    return true;
            }
        }
        return false;
    }