I would change how you are checking food, there is a much simpler way. Generic lists are very powerful. I have no clue what language you are working in but consider the following
Code:
List<string> foodAvail = new List<string>();
......
//somewhere else you can have an entry screen or something to add food to that list,
//or even add it in the declaration
......
//adding and removing from the list is easy... pretend "apple" and "grape" are in the list
foodAvail.Remove("apple");
foodAvail.Add("steak");
........
//you can then just do .contains
if( foodAvail.Contains(something))
{
//todo
}
will be a lot simpler. Do you have a database to work with? or just runtime variables? if you have no database then I would suggest making a dataset for all you 'stuff' if you do have a database I would suggest making a dataset for all your 'stuff' and populate it as needed (and hit the database as needed too for updates and what-not). This is all .net ideology- but Java has a lot of the same things, just called different things and somewhat different declarations/syntaxes