added food generation

needs conversion to OO