merge socket funcs into the game