Implemented the eating by filling in the collision function