Added end event to player