Refactored playerCodeEditor.cofee