add the api class and player class