fix the problem that the food's pos is not random