Added firebase integration into the game to record the trial time