added thread exit
Merge branch 'master' of https://github.com/UCSD-E4E/AngryBirds