server and client architecture for generic game server