player: added logic