public boolean eat() {
            Food closestFood = globalProperties.getClosest(this.getPosition());
            if (closestFood == null) {
                return false;
            }
            float distance = getDistance(this.getPosition(), closestFood.getPosition());
            if (interactDistance(distance, this.getRadius())) {
                this.setEnergy(this.getEnergy() + closestFood.getEnergy());
                globalProperties.removeFood(closestFood);
                return true;
            }
            return false;
        }