Adding methods to calculate value to decide whether an agent is 'happy'