modified the way items check for whether they're rotten