bug in main.cpp

An attempt to structure prey as agent leads to an error. Builds
successfully but doesn't like the way I index the food array