fn priority(mask: u128) -> u32
Find the lowest set bit (there should only be one) then convert to priority using the given rules.