Adding the eat food function

I have added the eat food function into the program, that will allow for
the avatar to add weight. It was hard, mainly due to me using both an
index for the character and an index for the food, and having them
confused, but after a period of time, I have been able to make it work!