update ping pong client and server logic