Move player-specific functions to player ns