Added a check to make sure the player has enough energy to be fed.