adding basic PlayerAgent connection functionnality