cleaned up the code in player.js