added pie getting eating functionality