Every time addFood comes up I get cannot find symbol-variable addFood
I am trying to create a snake game and I am trying to add the food into the world
public void populateWorld()
{
while (addFood < 10)
{
addObject( new Food(), Greenfoot.getRandomNumber(540), Greenfoot.getRandomNumber(540));
addFood++;
}
}
