Refactor player controlling out of base player.js file