initial logic to move player