pub fn bad_touch(&self, head: &Block) -> bool {
        for block in &self.body {
            if block.x == head.x && block.y == head.y {
                return true;
            }
        }

        false
    }
/// Determine if snake will touch the block, either head or an apple
Determine if snake will touch the block, either head or an apple
Determine if snake will touch the block either head or an apple
pub fn bad_touch(&self, head: &Block) -> bool {
        for block in &self.body {
            if block.x == head.x && block.y == head.y {
                return true;
            }
        }
        false
    }
pub fn bad_touch ( & self , head : & Block ) -> bool { for block in & self . body { if block . x == head . x && block . y == head . y { return true ; } } false }
Determine if snake will touch the block, either head or an apple
Determine if snake will touch the block either head or an apple
&self
head
&Block
&self
head
&Block