Update GoalManager.coffee
Update GoalManager.coffee

Justification:

For a negative goal like saveThangs, let's say you have 5 thangs on the save list.  As things stand, if you don't have a HowMany defined, then the number of needed deaths to fail is 

numNeeded = _.size(stateThangs) - Math.min((goal.howMany ? 1), _.size stateThangs) + 1
numNeeded = 5 - Math.min(1, 5) + 1
numNeeded = 5

So you would only fail the goal if all 5 thangs you were supposed to save died.  This is contrary to the comment right above this line:

# saveThangs: by default we would want to save all the Thangs, which means that we would want none of them to be "done"

Therefore, I think it should be Math.max rather than Math.min.

numNeeded = _.size(stateThangs) - Math.max((goal.howMany ? 1), _.size stateThangs) + 1
numNeeded = 5 - Math.max(1, 5) + 1
numNeeded = 1

So any of the Thangs on the save list dying is enough to fail the goal.

As a double check, what if the level designer designated a HowMany of 5?

numNeeded = _.size(stateThangs) - Math.max((goal.howMany ? 1), _.size stateThangs) + 1
numNeeded = 5 - Math.max(5, 5) + 1
numNeeded = 1

So this is consistent.
MonkStrom/codecombat,leendek/codecombat,UltCombo/codecombat,fabichoi/codecombat,ingedmundo/codecombat,geekchy/codecombat,D0rm1nd0/codecombat,Layle77/codecombat,Cooky8197/codecombat,leendek/codecombat,SephVelut/codecombat,anonymousch/codecombat,teresacream/codecombat,rao1219/codecombat,probil/codecombat,eschuler21/codecombat,javatlacati/codecombat,ilo/codecombat,ReturntoZero/codecombat,jeremyprice/codecombat,chooowai/codecombat,tcxhxx/codecombat,tpai/codecombat,PatrickShelby/codecombat,codecombat/codecombat,aashaka/codecombat,pooky-lin/codecombat,ilo/codecombat,jhoon/codecombat,nullsquid/codecombat,Fokusnica/codecombat,Cooky8197/codecombat,nixel2007/codecombat,FedericoTomas/codecombat,bkiehl/lol,Zerrien/codecombat,amit2103/codecombat,hujianfei1989/codecombat,zhangxiuquan/codecombat,s2prod/codecombat,jacobakkerboom/CodeCombat2,jumarko/codecombat,anirudhnr2015/codecombat,Layle77/codecombat,tuomastanner/codecombat,TsubameDono/codecombat,eschuler21/codecombat,bsmr-x-script/codecombat,Minhir/codecombat,jacobakkerboom/CodeCombat2,rohmunhoz/codecombat,Ikuyadeu/codecombat,chooowai/codecombat,thejdeep/codecombat,cundamic/codecombat,Ikuyadeu/codecombat,duybkict/codecombat,s2prod/codecombat,duybkict/codecombat,Zacharias030/codecombat,Driphter/codecombat,sarahjean/codecombat,ycaihua/codecombat,dyhpoon/codecombat,The-Alchemist/codecombat,amit2103/codecombat,Ye-Yong-Chi/codecombat,GraysonP/codecombat-1,weevilgenius/codecombat,trotod/codecombat,jequal/codecombat,javatlacati/codecombat,teresacream/codecombat,geekchy/codecombat,slacker88/codecombat,rodeofly/rodeofly.github.io,jequal/codecombat,bkiehl/lol,Diprm77/codecombat,weevilgenius/codecombat,cundamic/codecombat,SephVelut/codecombat,bsmr-x-script/codecombat,Akhuta/codecombat,teffy/codecombat,dyhpoon/codecombat,nixel2007/codecombat,ZephyrSails/codecombat,rodeofly/rodeofly.github.io,dboyliao/codecombat,differentmatt/codecombat,tcxhxx/codecombat,askeing/codecombat,jacobakkerboom/CodeCombat2,GraysonP/codecombat-1,MonkStrom/codecombat,khoa102/codecombat,anonymousch/codecombat,askeing/codecombat,mnogi/codecombat,lasershow/codecombat,justinleoye/codecombat,rao1219/codecombat,ZephyrSails/codecombat,teresacream/codecombat,lasershow/codecombat,codecombat/codecombat,askeing/codecombat,zuihun/codecombat,hujianfei1989/codecombat,VilkkuV/codecombat,rohmunhoz/codecombat,jumarko/codecombat,PatrickShelby/codecombat,q1ang/codecombat,abhisekp/codecombat,feifacz/codecombat,cherub0526/codecombat,jeremyprice/codecombat,trotod/codecombat,q1ang/codecombat,Driphter/codecombat,TsubameDono/codecombat,pougounias/codecombat,mads232/codecombat,fabichoi/codecombat,kumabotz/codecombat,wolut/codecombat,wanchouchou/codecombat,abhisekp/codecombat,s2prod/codecombat,ilo/codecombat,khoa102/codecombat,ilo/codecombat,justinleoye/codecombat,bsmr-x-script/codecombat,pooky-lin/codecombat,ZephyrSails/codecombat,VilkkuV/codecombat,TeodorMihai/codecombat,ycaihua/codecombat,anonymousch/codecombat,yapkn/codecombat,ReturntoZero/codecombat,trotod/codecombat,VilkkuV/codecombat,Akhuta/codecombat,AkaKaras/codecombat,edtrist/codecombat,AkaKaras/codecombat,laituan245/codecombat,rodeofly/rodeofly.github.io,jumarko/codecombat,wangjun/codecombat,dboyliao/codecombat,dboyliao/codecombat,SephVelut/codecombat,bsmr-x-script/codecombat,pooky-lin/codecombat,q1ang/codecombat,slacker88/codecombat,Cooky8197/codecombat,rao1219/codecombat,Zacharias030/codecombat,teffy/codecombat,ecemm/codecombat,icodegame/codecombat,jequal/codecombat,abhisekp/codecombat,tpai/codecombat,edtrist/codecombat,bkiehl/lol,javatlacati/codecombat,amit2103/codecombat,feifacz/codecombat,dyhpoon/codecombat,edtrist/codecombat,The-Alchemist/codecombat,Ikuyadeu/codecombat,nullsquid/codecombat,jeremiahyan/codecombat,jhoon/codecombat,Fokusnica/codecombat,hujianfei1989/codecombat,cundamic/codecombat,jeremiahyan/codecombat,Fokusnica/codecombat,geekchy/codecombat,justinleoye/codecombat,probil/codecombat,JordanLittell/codecombat,thejdeep/codecombat,Ye-Yong-Chi/codecombat,fabichoi/codecombat,AlanHohn/codecombat,probil/codecombat,amit2103/codecombat,aashaka/codecombat,kumabotz/codecombat,anirudhnr2015/codecombat,cherub0526/codecombat,AlanHohn/codecombat,AlanHohn/codecombat,mads232/codecombat,Zacharias030/codecombat,VilkkuV/codecombat,jequal/codecombat,TeodorMihai/codecombat,PatrickShelby/codecombat,FedericoTomas/codecombat,thejdeep/codecombat,zuihun/codecombat,sarahjean/codecombat,EmbraceLife/codecombat,TeodorMihai/codecombat,Diprm77/codecombat,jeremiahyan/codecombat,wolut/codecombat,lasershow/codecombat,nullsquid/codecombat,giaba90/codecombat,laituan245/codecombat,duybkict/codecombat,Minhir/codecombat,giaba90/codecombat,Driphter/codecombat,tuomastanner/codecombat,jeremiahyan/codecombat,The-Alchemist/codecombat,dyhpoon/codecombat,D0rm1nd0/codecombat,UltCombo/codecombat,wanchouchou/codecombat,laituan245/codecombat,weevilgenius/codecombat,nimda7/codecombat,hujianfei1989/codecombat,jacobakkerboom/CodeCombat2,icodegame/codecombat,wanchouchou/codecombat,tuomastanner/codecombat,khoa102/codecombat,nimda7/codecombat,nimda7/codecombat,SephVelut/codecombat,pougounias/codecombat,teffy/codecombat,kidaa/codecombat,nixel2007/codecombat,Driphter/codecombat,teffy/codecombat,javatlacati/codecombat,anonymousch/codecombat,jeremyprice/codecombat,ReturntoZero/codecombat,jacobakkerboom/codecombat,wanchouchou/codecombat,eschuler21/codecombat,UltCombo/codecombat,yapkn/codecombat,icodegame/codecombat,JordanLittell/codecombat,Akhuta/codecombat,wangjun/codecombat,Diprm77/codecombat,justinleoye/codecombat,slacker88/codecombat,yapkn/codecombat,geekchy/codecombat,eschuler21/codecombat,codecombat/codecombat,sarahjean/codecombat,ecemm/codecombat,abhisekp/codecombat,jacobakkerboom/codecombat,zhangxiuquan/codecombat,Zacharias030/codecombat,JordanLittell/codecombat,TeodorMihai/codecombat,Ye-Yong-Chi/codecombat,leendek/codecombat,tpai/codecombat,tpai/codecombat,probil/codecombat,differentmatt/codecombat,AlanHohn/codecombat,jhoon/codecombat,wgsu/codecombat,Zerrien/codecombat,wgsu/codecombat,mads232/codecombat,leendek/codecombat,mnogi/codecombat,wolut/codecombat,khoa102/codecombat,jhoon/codecombat,ecemm/codecombat,UltCombo/codecombat,trotod/codecombat,cherub0526/codecombat,mnogi/codecombat,JordanLittell/codecombat,duybkict/codecombat,zuihun/codecombat,icodegame/codecombat,mads232/codecombat,ingedmundo/codecombat,differentmatt/codecombat,codecombat/codecombat,Layle77/codecombat,tuomastanner/codecombat,Diprm77/codecombat,PatrickShelby/codecombat,jeremyprice/codecombat,zhangxiuquan/codecombat,zuihun/codecombat,Layle77/codecombat,giaba90/codecombat,EmbraceLife/codecombat,wgsu/codecombat,differentmatt/codecombat,dboyliao/codecombat,fabichoi/codecombat,GraysonP/codecombat-1,cherub0526/codecombat,feifacz/codecombat,jumarko/codecombat,nimda7/codecombat,ycaihua/codecombat,cundamic/codecombat,aashaka/codecombat,FedericoTomas/codecombat,AkaKaras/codecombat,ingedmundo/codecombat,kumabotz/codecombat,slacker88/codecombat,teresacream/codecombat,nullsquid/codecombat,pougounias/codecombat,anirudhnr2015/codecombat,s2prod/codecombat,jacobakkerboom/codecombat,thejdeep/codecombat,tcxhxx/codecombat,wangjun/codecombat,wolut/codecombat,ingedmundo/codecombat,Ye-Yong-Chi/codecombat,edtrist/codecombat,codecombat/codecombat,ecemm/codecombat,MonkStrom/codecombat,TsubameDono/codecombat,anirudhnr2015/codecombat,jacobakkerboom/codecombat,kumabotz/codecombat,EmbraceLife/codecombat,aashaka/codecombat,mnogi/codecombat,Ikuyadeu/codecombat,tcxhxx/codecombat,wgsu/codecombat,chooowai/codecombat,Zerrien/codecombat,Minhir/codecombat,Akhuta/codecombat,rodeofly/rodeofly.github.io,chooowai/codecombat,pougounias/codecombat,feifacz/codecombat,javatlacati/codecombat,ycaihua/codecombat,sarahjean/codecombat,kidaa/codecombat,nixel2007/codecombat,ReturntoZero/codecombat,pooky-lin/codecombat,AkaKaras/codecombat,Cooky8197/codecombat,kidaa/codecombat,D0rm1nd0/codecombat,Fokusnica/codecombat,rohmunhoz/codecombat,q1ang/codecombat,GraysonP/codecombat-1,askeing/codecombat,zhangxiuquan/codecombat,TsubameDono/codecombat,laituan245/codecombat,yapkn/codecombat,EmbraceLife/codecombat,rao1219/codecombat,rohmunhoz/codecombat,weevilgenius/codecombat,giaba90/codecombat,lasershow/codecombat,MonkStrom/codecombat,The-Alchemist/codecombat,Minhir/codecombat,Zerrien/codecombat,kidaa/codecombat,bkiehl/lol,wangjun/codecombat