Added bounds checking to isEaten() that will also work for eat()