Added save_players() function