client and server playing ping pong