private void avoidFromEdge(int[][] currentTokens) {
        //move currentTokens to the right if they are at right edge
        while (x0 < 0 || x1 < 0 || x2 < 0 || x3 < 0) {
            currentTokens[0][0]++;
            currentTokens[1][0]++;
            currentTokens[2][0]++;
            currentTokens[3][0]++;
            x0++;
            x1++;
            x2++;
            x3++;
        }

        //move currentTokens to the left if they are at left edge
        while (x0 > 9 || x1 > 9 || x2 > 9 || x3 > 9) {
            currentTokens[0][0]--;
            currentTokens[1][0]--;
            currentTokens[2][0]--;
            currentTokens[3][0]--;
            x0--;
            x1--;
            x2--;
            x3--;
        }
    }