(SEG FAULT 11) fixed small but crucial error in eat()