working on player.d