fixing spawning of food