addNewPlayer function to join game