slow working solution to connecting game div2, need to improve runtime complex