factor new Player.js into Classes