Maybe a Greenfoot expert will correct me, but I don't think that Greenfoot automatically backs up your files. I think the only thing that you can do is try to rebuild your method. What did lookForFood() do? Did it look for food within a radius of x pixels? Did it just look at intersecting food particles? Tell us how it worked, so that we know how to rebuild it.