public bool CheckIfSameCoordWithFood(IFood food) { if (SnakeBody[0].X == food.GetX() && SnakeBody[0].Y == food.GetY()) { return(true); } return(false); }