public void ResetAffectedTiles()
    {
        List <NodeComponent> affectedTiles = new List <NodeComponent>();

        affectedTiles.AddRange(Open.Values);
        affectedTiles.AddRange(Closed);
        affectedTiles.Add(Start);
        affectedTiles.Add(End);

        for (int i = 0; i < affectedTiles.Count; i++)
        {
            NodeComponent affected = affectedTiles[i];

            affected.ResetNode();
            affected.GetComponent <SpriteRenderer>().color = Color.white;
        }
    }