for (var t2 = 0; t2 < ties.length; t2++) {
            ties[t2].setContext(context).draw();
        }