moved eat function to player