command handler for game server