Cleanup player render code