Clean up player-related code