Almost got cookies to reset at end of game
Cookies deleted upon resignation
minor refactoring