added IF

IF for reseting hunger etc when leveling up