check if player exists before swapping