Debug-only button to completely reset the game. Cleaned up some memory management. Fixed a couple of things the static analyzer was unhappy with.