added in player position variable