implement basic joining function for player