functions to store player records and games