Add distance check to player