private void CheckCollision() { if (worm.IsIntersected2()) /////////WORM BODY COLLISION { Butter.gameOver = true; gameover(); } else if (worm.IsIntersected(wall.body))/////////WORM WALL COLLISION { Butter.gameOver = true; gameover(); } else if (worm.IsIntersected(food.body)) { worm.Eat(food.body); food.GenerateLocation(); food.Draw(); } }