added more design comments and graceful quitting of the game