i used a malloc instead of dyanimc allocation sorry the food hungers too much