put back the hostgame function, somehow it was deleted