public void searchForFood(FoodEntity other, int delta)
    {
        if(other.getX() >= this.getX())
        {
            if(hasMutated == false)
            {
                setDir(1);
            }else if(hasMutated == true)
            {
                setDir(3);
            }
            posX+= getSpeed() * delta;
            this.poly.setX(posX);
        }
        if(other.getX() <= this.getX())
        {
            //setDir(0);
            if(hasMutated == false)
            {
                setDir(0);
            }else if(hasMutated == true)
            {
                setDir(4);
            }
            posX-=  getSpeed() * delta;
            this.poly.setX(posX);
        }
        if(other.getY() >= this.getY())
        {
            posY+=  getSpeed() * delta;
            this.poly.setY(posY);
        }
        if(other.getY() <= this.getY())
        {
            posY-=  getSpeed() * delta;
            this.poly.setY(posY);
        }
    }