pub fn upgrade(&mut self, n: u8) {
        self.top = min(10, self.top + n);
        self.right = min(10, self.right + n);
        self.bottom = min(10, self.bottom + n);
        self.left = min(10, self.left + n);
    }
// increases every stat by n up to a maximum of 10
increases every stat by n up to a maximum of 10
increases every stat by n up to a maximum of 10
pub fn upgrade(&mut self, n: u8) {
        self.top = min(10, self.top + n);
        self.right = min(10, self.right + n);
        self.bottom = min(10, self.bottom + n);
        self.left = min(10, self.left + n);
    }
pub fn upgrade ( & mut self , n : u8 ) { self . top = min ( 10 , self . top + n ) ; self . right = min ( 10 , self . right + n ) ; self . bottom = min ( 10 , self . bottom + n ) ; self . left = min ( 10 , self . left + n ) ; }
increases every stat by n up to a maximum of 10
increases every stat by n up to a maximum of 10
&mut self
n
u8