fn is_wall(&mut self) -> bool {
        let available_x = self.background.0 as f64 - self.size.0;
        let available_y = self.background.1 as f64 - self.size.1;
        between(0.0, available_x, self.current_state.0) &&
        between(0.0, available_y, self.current_state.1)
    }
// if object goes outside the window then it turns the false
if object goes outside the window then it turns the false
if object goes outside the window then it turns the false
fn is_wall(&mut self) -> bool {
        let available_x = self.background.0 as f64 - self.size.0;
        let available_y = self.background.1 as f64 - self.size.1;
        between(0.0, available_x, self.current_state.0) &&
        between(0.0, available_y, self.current_state.1)
    }
fn is_wall ( & mut self ) -> bool { let available_x = self . background . 0 as f64 - self . size . 0 ; let available_y = self . background . 1 as f64 - self . size . 1 ; between ( 0.0 , available_x , self . current_state . 0 ) && between ( 0.0 , available_y , self . current_state . 1 ) }
if object goes outside the window then it turns the false
if object goes outside the window then it turns the false
&mut self
&mut self