Stops the game the right way

Stops the game using app.stop() instead of System.exit(0);