Removed unecessary code in HappinessAlgorithm.