added judgeEating() and judgeBiting()