moved logic for player dir after grabing block to the player class