improving the javascript functionality to handle a move and add the current roll value to the player's position