updated the return values to modify happiness