Cleanup player initialization code.