some refactoring, remove existing games when saving a new one