added join game function