fixed array reference
fixed food bug