public void InitializeReferences(GameObject [] Prefabs, GameObject p1Indicator, GameObject p2Indicator)
    {
        board = this.gameObject.AddComponent<MatchBoard>();
        input = this.gameObject.AddComponent<PlayerInput>();
        input.initIndicators(p1Indicator, p2Indicator);
        giver = this.gameObject.AddComponent<ResourceGiver>();
        audio = this.gameObject.GetComponent<AudioSource>();
        matchSound = audio.clip;
        muted = false;

        TilePrefabs = Prefabs;
        InitializeTypes();
        InitializeSpawn();
    }