impoved saving of games. made it transactional atomic