added some example logic in for the player