Refactor player.js to individual control files