private boolean checkWinInDiagonalLines (IPlayer player) {

        int count1 = 0;

        for (int i=0; i<SIZE_OF_MATRIX; i++) {

            if (matrix[i][i] == player.getMark()) {

                count1++;

            }

        }

        int count2 = 0;

        for (int i=SIZE_OF_MATRIX-DOWN_AND_RIGHT_BORDER_SIZE, j=TOP_AND_LEFT_BORDER_SIZE-1; i>=TOP_AND_LEFT_BORDER_SIZE; i--, j++) {

            if (matrix[i][j] == player.getMark()) {

                count2++;

            }

        }


        if (count1 == WINNER_SCORE || count2 == WINNER_SCORE) {

            return true;

        }   else {

            return false;

        }
    }