pub fn match_color_with_index(index: &usize, territory_blue: isize, click_blue: isize) -> bool {
        let sign = (128 - territory_blue).signum();
        let i = *index as isize;
        territory_blue + (sign * i as isize) == click_blue
    }
// Index of map.territory + 1, to account for outside = 0
Index of map.territory + 1, to account for outside = 0
Index of map . territory + 1 to account for outside = 0
pub fn match_color_with_index(index: &usize, territory_blue: isize, click_blue: isize) -> bool {
        let sign = (128 - territory_blue).signum();
        let i = *index as isize;
        territory_blue + (sign * i as isize) == click_blue
    }
pub fn match_color_with_index ( index : & usize , territory_blue : isize , click_blue : isize ) -> bool { let sign = ( 128 - territory_blue ) . signum ( ) ; let i = * index as isize ; territory_blue + ( sign * i as isize ) == click_blue }
Index of map.territory + 1, to account for outside = 0
Index of map . territory + 1 to account for outside = 0
index
&usize
territory_blue
isize
click_blue
isize
index
&usize
territory_blue
isize
click_blue
isize