working version of the player