fn delta(a: i32, b: i32) -> i32
Convert each pair of levels to either +1 for increase, -1 for decrease or 0 for invalid range.