Workign version, that has invite friends using the html button and redirection to playing new game properly written