Settings not being saved after game close