fixed logical error in GameServer
Client rewrite and test tools