player.js should be object oriented