add network function for game

add network function for game