fixed major memory leak. Spritebatches were being created every frame and never destroyed, so memory was just being eaten fast. Also fixed a bug where the application wasn't being cleaned up properly.