Add isFood implementation to display rotten food
Improve dealWith function
Fix issue outOfBounds in array accessing