properly save and load player stats when using flatfile