Cleaning player code