edge detection for player added