Slight refactor of CookieMonster.update