Refactored player_api to dome_api