Triangle game, using nodeJS for a server and Firebase as a database